package com.feilx.changggou.order.service.impl;

import com.changgou.bean.PageVo;
import com.changgou.bean.Query;
import com.changgou.bean.QueryCondition;
import com.changgou.pojo.order.TbOrderItemEntity;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.feilx.changggou.order.dao.TbOrderItemDao;
import com.feilx.changggou.order.service.TbOrderItemService;


@Service("tbOrderItemService")
public class TbOrderItemServiceImpl extends ServiceImpl<TbOrderItemDao, TbOrderItemEntity> implements TbOrderItemService {

    @Override
    public PageVo queryPage(QueryCondition params) {
        IPage<TbOrderItemEntity> page = this.page(
                new Query<TbOrderItemEntity>().getPage(params),
                new QueryWrapper<TbOrderItemEntity>()
        );

        return new PageVo(page);
    }

}
